package com.ship.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ship.auth.entity.vo.RegisterVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserCreateMapper extends BaseMapper<RegisterVo> {
    @Select("SELECT user_id ,user_name FROM sys_user WHERE user_name = #{username}")
    String getByUserName(String username);

    @Select("SELECT user_id FROM sys_user WHERE user_name = #{username}")
    String getIdByUserName(String userName);
}
